cmake_minimum_required(VERSION 3.7)
project(my_ffmpeg)
set(CMAKE_C_STANDARD 11)
set(SOURCE_FILES main.c muxing/my_muxing.h muxing/my_muxing.c  transcoding_examples/transcoding.c transcoding/my_transcoding.c transcoding/my_transcoding.h)
#include ffmpeg library
set(FFMPEG_HEAD_DIR /workspace/develop-lib/ffmpeg/include)
set(FFMPEG_LIB_DIR /workspace/develop-lib/ffmpeg/lib)
#include sdl library
set(SDL_HEAD_DIR /workspace/develop-lib/sdl/include)
set(SDL_LIB_DIR /workspace/develop-lib/sdl/lib)
#include x264 library
set(X264_LIB_DIR /usr/local/lib)

include_directories(${FFMPEG_HEAD_DIR} ${SDL_HEAD_DIR})
link_directories(${FFMPEG_LIB_DIR} ${SDL_LIB_DIR} ${X264_LIB_DIR})

#executable
add_executable(my_ffmpeg ${SOURCE_FILES})
target_link_libraries(my_ffmpeg
        #ffmpeg
        avcodec avfilter avformat avdevice swscale swresample avutil
        #SDL
        SDL2)









